package com.ncs.pojo;

/**
 * @Author DELL
 * @Date 2021/8/7 17:59
 */
public class Teacher {

    private Integer id;
    private String username;
    private Integer age;
    private char sex;
    private String address;
    private String phone;

    public Teacher() {
    }

    public Teacher(Integer id, String username, Integer age, char sex, String address, String phone) {
        this.id = id;
        this.username = username;
        this.age = age;
        this.sex = sex;
        this.address = address;
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void getWork() {
        System.out.println(this.username+"老师早上8点上班");
    }

    public void leaveWork() {
        System.out.println(this.username+"老师下午六点下班");
    }

    public void getUp() {
        System.out.println(this.username+"老师早上6点起床");
    }
}
